<?php
$jige = 70;
$shuxue = 100;
 $yvwen = 100;
 $yingyv = 100;
 $pingjun = ($shuxue+$yvwen+$yingyv)/3;
 
 echo "语文=$yvwen<br>";
 echo "数学=$shuxue<br>";
 echo "英语=$yingyv<br>";
 echo "平均分=$pingjun<br>";
 echo "及格线$jige 分<br>";
 echo "你的成绩：";
 if($pingjun >= $jige){
     echo "<font color=green>及格</font>";
 }
 else{
     echo "<font color=red>不及格</font>";
 }
 
?>
